package com.admin.domain.repository;

import com.admin.domain.modle.Member;

import java.util.List;

public interface MemberRepository {

    /**
     * 更新或者插入member信息
     *
     * @param member
     * @return
     */
    Member upsert(Member member);

    int add(Member member);

    Member getById(String id);

    Member getByOpenId(String openId);

    int update(Member member);

    List<Member> list(String key);

    int remove(String id);

}
